package com.oracle.xmlns.PatientService.getOrdersProcess.getOrderProcess;

public class GetOrderProcessProxy implements com.oracle.xmlns.PatientService.getOrdersProcess.getOrderProcess.GetOrderProcess {
  private String _endpoint = null;
  private com.oracle.xmlns.PatientService.getOrdersProcess.getOrderProcess.GetOrderProcess getOrderProcess = null;
  
  public GetOrderProcessProxy() {
    _initGetOrderProcessProxy();
  }
  
  public GetOrderProcessProxy(String endpoint) {
    _endpoint = endpoint;
    _initGetOrderProcessProxy();
  }
  
  private void _initGetOrderProcessProxy() {
    try {
      getOrderProcess = (new com.oracle.xmlns.PatientService.getOrdersProcess.getOrderProcess.GetOrderProcess_epLocator()).getgetOrderProcess_pt();
      if (getOrderProcess != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)getOrderProcess)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)getOrderProcess)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (getOrderProcess != null)
      ((javax.xml.rpc.Stub)getOrderProcess)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public com.oracle.xmlns.PatientService.getOrdersProcess.getOrderProcess.GetOrderProcess getGetOrderProcess() {
    if (getOrderProcess == null)
      _initGetOrderProcessProxy();
    return getOrderProcess;
  }
  
  public com.oracle.xmlns.PatientService.getOrdersProcess.getOrderProcess.Order[] process(int userId) throws java.rmi.RemoteException{
    if (getOrderProcess == null)
      _initGetOrderProcessProxy();
    return getOrderProcess.process(userId);
  }
  
  
}